package service;

import Dao.UserDao;
import Dao.UserDaoImp;
import bean.User;
import factory.UserDaoFactory;

public class UserService {

    private UserDao userDao;

    public UserService() {
        this.userDao = UserDaoFactory.getUserDao ();
    }
    //自定义成员方法实现，根据参数指定的user对象来调用dao层实现登录功能
    public User userLoginService(User user) {
        return userDao.userLogin (user);
    }
}
